<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="content">
            <div align="center" >
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <div align="center" style="width: 80%">
                    <h:form>
                        <p:panel header="Visualizar Texto">
                            <p:panelGrid columns="2">
                                <h:outputText value="#{bundle.ViewTextoLabel_titulo}"/>
                                <h:outputText value="#{textoController.selected.titulo}" title="#{bundle.ViewTextoTitle_titulo}"/>
                                <h:outputText value="#{bundle.ViewTextoLabel_subtitulo}"/>
                                <h:outputText value="#{textoController.selected.subtitulo}" title="#{bundle.ViewTextoTitle_subtitulo}"/>
                                <h:outputText value="#{bundle.ViewTextoLabel_texto}"/>
                                <h:outputText value="#{textoController.selected.texto}" title="#{bundle.ViewTextoTitle_texto}"/>
                            </p:panelGrid>
                            <br />
                            
                            <h:link outcome="/texto/List" value="#{bundle.ViewTextoIndexLink}"/>
                        </p:panel>
                    </h:form>
                </div>
            </div>
        </ui:define>
    </ui:composition>

</html>
